'use strict';

/**
 * @ngdoc directive
 * @name jgappApp.directive:userInfo
 * @description
 * # userInfo
 */
angular.module('jgappApp')
    .directive('userInfo', ['localStorageService', '$filter', function(localStorageService, $filter) {
        return {
            scope: {},
            template: '<div class="flex userinfo celled">' +
                '<div class="w30 user-pic">' +
                '<img ng-src={{picsrc}}>' +
                '</div>' +
                '<div class="w70 lh30">' +
                '<p class="fs20 c0">{{name}}</p>' +
                '<p>{{date}}</p>' +
                '</div>' +
                '</div>',
            restrict: 'AE',
            replace: true,
            link: function postLink(scope, element, attrs) {
                // element.text('this is the userInfo directive');
                // var taskDetail;
                // taskDetail = localStorageService.get("taskDetail")
                // scope.picsrc = "images/newtaskA.png";
                // scope.name = taskDetail.assignee;
                // scope.date = taskDetail.createTime;
                // 隐藏
                element.text("");
            }
        };
    }]);
